<template>
	<view>
		<swiper :indicator-dots="true" indicator-active-color="#fff" :autoplay="true" :interval="3000" :duration="1000" circular="">
			<block v-for="(item,index) in resData" :key="index">
				<swiper-item>
					<view class="swiper-item" @tap="event(item)">
						<image style="height: 350rpx;" lazy-load :src="item.src"></image>
					</view>
				</swiper-item>
			</block>
		</swiper>
	</view>
</template>

<script>
	export default{
		props:{
			resData:Array
		},
		methods:{
			event(item){
				console.log('点击了图片轮播图',item)
			}
		}
	}
</script>

<style>
</style>
